# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=moe
pkgver=1.10
pkgrel=0
pkgdesc="A powerful and user-friendly text editor"
url="https://www.gnu.org/software/moe/moe.html"
arch="all"
license="GPL-2.0-or-later"
makedepends="ncurses-dev texinfo"
subpackages="$pkgname-doc"
source="https://ftp.gnu.org/gnu/moe/moe-$pkgver.tar.lz"
options="!check"
builddir="$srcdir/"$pkgname-$pkgver

build() {
	cd "$builddir"
	./configure --prefix=/usr --sysconfdir=/etc
	make CXXFLAGS="$CXXFLAGS" LDFLAGS="$LDFLAGS"
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="3908d7906aa7dcb8bd4a5d340fe94b06fc91814098c20e8939906c2b0e03e1a8a3c95847b5f8111a5d9f37636a2fafa52f9105e0e8fa0ad8b16c2f9e9dede748  moe-1.10.tar.lz"
